package com.yixun.show.controller;
import com.yixun.controller.BaseController;
import com.yixun.lbx.entity.YxProCompany;
import com.yixun.show.domain.ShowBean;
import com.yixun.show.service.ShowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;

/**
 *      展示平台控制器
 *
 * @author Mr_Wang*/
@Controller
@RequestMapping(value = "/show")
public class ShowController extends BaseController {

    @Autowired
    private ShowService showService ;

    //跳转登录页面；
    @RequestMapping(value = "/goLogin")
    public String leftmenu(){
        return "/login";
    }

    //后台查询数据；
   @RequestMapping(value = "/getShowData")
   @ResponseBody
   public ShowBean getShowData(){
        return showService.getShowData();
   }

    //后台查询企业简介；
    @RequestMapping(value = "/getQyData")
    @ResponseBody
    public YxProCompany getQyData(@RequestBody String brand){
        YxProCompany qyData = showService.getQyData(brand);
        return qyData;
    }

}
